package cms.mager.domain;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 功能: 客户实体类
 * Author: yuhui
 * Date: 2021/4/9 20:17
 */
public class Customer {
    private Integer id;
    private String name;
    private String phone;
    private Integer sex;
    private String company;
    private Integer deleted;
    private Integer user_id;
    private String username;
    @JSONField(format = "yyyy-MM-dd")
    private Date create_time;
    @JSONField(format = "yyyy-MM-dd")
    private Date update_time;
    @JSONField(format = "yyyy-MM-dd")
    private Date delete_time;

    public Customer() {
    }

    public Customer(String name, String phone, Integer sex, String company, Integer deleted, Integer user_id, Date create_time, Date update_time, Date delete_time) {
        this.name = name;
        this.phone = phone;
        this.sex = sex;
        this.company = company;
        this.deleted = deleted;
        this.user_id = user_id;
        this.create_time = create_time;
        this.update_time = update_time;
        this.delete_time = delete_time;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", company='" + company + '\'' +
                ", deleted=" + deleted +
                ", user_id=" + user_id +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", delete_time='" + delete_time + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Date getDelete_time() {
        return delete_time;
    }

    public void setDelete_time(Date delete_time) {
        this.delete_time = delete_time;
    }
}
